<?php
/**
 * Copyright (C) 2010-2013 Oscar Valenzuela B. (ovalenzuela@xpertians.com)
 * 
 * This file is part of WarpIT.
 * WarpIT is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 * 
 * WarpIT is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with WarpIT.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * ConsultashssController class
 * @author Oscar Valenzuela <ovalenzuela@xpertians.com>
 * @version 1.0
 * @package WarpIT!
 * @copyright Copyright (C) 2010-2013 Xpertians SpA
 * @license GNU GPLv3 or later
 * @link http://www.xpertians.com
 */

class ConsultashssController extends ConsultashssModel{
	
	private static $module = "consultashss";
	
	/**
	 * System instance
	 *
	 * @var mixed
	 */
	private $mainObj;

	/**
	 * Url parameters
	 *
	 * @var string
	 */
	private $params;

	/**
	 * ConsultashssController is the constructor of this class 
	 *
	 * Following syntax are recognized :
	 *
	 * @param mixed $mainObj System instance
	 * @param string $params URL Params
	 */
	public function ConsultashssController($mainObj,$params){
		$this->mainObj				= $mainObj;
		$this->params				= $params;
		$this->mainObj->moduleTitle		= "Consultashss";
		$this->mainObj->moduleDescription	= "";
		$this->mainObj->moduleAction		= "main";
	}
	
	public function main(){
		$controller			= "search";
		$file				= "index";
		$this->mainObj->moduleAction	= "Search";
		$this->mainObj->getViewFromController($this->mainObj,$controller,static::$module,$this->mainObj->moduleAction,$file,array());
	}
	
	public function search(){
		$controller			= "search";
		$file				= "search";
		$this->mainObj->moduleAction	= "Search";
		$this->mainObj->getViewFromController($this->mainObj,$controller,static::$module,$this->mainObj->moduleAction,$file,array());
	}
}
